package net.mingsoft.mdiy.biz.impl;

import net.mingsoft.base.biz.impl.*;
import net.mingsoft.mdiy.dao.*;
import net.mingsoft.mdiy.entity.*;
import net.mingsoft.mdiy.biz.*;
import org.springframework.stereotype.*;
import org.springframework.beans.factory.annotation.*;
import net.mingsoft.base.dao.*;
import net.mingsoft.base.entity.*;
import java.util.*;

@Service("dictBizImpl")
public class DictBizImpl extends BaseBizImpl<IDictDao, DictEntity> implements IDictBiz
{
    @Autowired
    private IDictDao dictDao;
    
    protected IBaseDao getDao() {
        return (IBaseDao)this.dictDao;
    }
    
    public DictEntity getByTypeAndLabelAndValue(final String dictType, final String dictLabel, final String dictValue) {
        final DictEntity dict = new DictEntity();
        dict.setDictType(dictType);
        dict.setDictLabel(dictLabel);
        dict.setDictValue(dictValue);
        return (DictEntity)this.dictDao.getByEntity((BaseEntity)dict);
    }
    
    public List<DictEntity> dictType(final DictEntity dictEntity) {
        return this.dictDao.dictType(dictEntity);
    }
    
    public List queryExcludeApp(final DictEntity dictEntity) {
        return this.dictDao.queryExcludeApp(dictEntity);
    }
}
